<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>FIRST LEGO League na Slovensku - FLL na Slovensku</title>
<base href="http://www.fll.sk/" />
<link href="http://kempelen.ii.fmph.uniba.sk/letnaliga/styles.css" rel="stylesheet" type="text/css" />
</head>
    <body>
        <h2>Editor riešenia</h2>
        <?php echo form_open_multipart('attachment_control/do_upload');?>
            <table>
                <tr>
                    <td><label for="file">Vyberte prílohu</label></td>
                    <td><input id="file" type="file" name="userfile" size="20" /></td>
                    <td><?php echo form_submit('zadanie', 'Vlož prílohu'); ?></td>
                </tr>
            </table>
        </form>
        <?php if (isset($error)){ ?> 
            <p><?php echo $error; ?></p>
        <?php } ?>
        <p>
            <?php if(!empty($prilohy)) { 
                echo "Doposiaľ nahrané prílohy:<br/>";
                foreach($prilohy as $priloha) { ?>
                <p>
                    <a href="http://kempelen.ii.fmph.uniba.sk/letnaliga/attachments2/<?php echo $priloha->link; ?>"><?php echo $priloha->link; ?></a>
                    </br><a href="<?php echo site_url('attachment_control/delete_attachment/'.$priloha->link); ?>">Vymazať</a>
                </p>
            <?php }} ?>
        </p>
        <a href="<?php echo site_url('upload_control/index/'.$sid); ?>"> Pokračovať </a>
    </body>

</html>
